package DAO;

import java.sql.Connection;
import java.sql.DriverManager;

public class GerenteConexao {

    public static Connection getConexao() {
        Connection conexao = null;

        String url = "jdbc:mysql://localhost:3306/sistemapedido";
        String usuario = "root";
        String senha = "fals123";
        
        try {
            Class.forName("org.gjt.mm.mysql.Driver");
            conexao = DriverManager.getConnection(url, usuario, senha);
        } catch (Exception e) {
            System.out.println(e.getMessage());
        }
        return conexao;
    }
}
